package com.jf3q.front.controller;

import com.jf3q.common.domain.EduBanner;
import com.jf3q.common.vo.ResultVo;
import com.jf3q.front.service.EduBannerService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.Banner;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@Tag(name = "轮播图")
@RequestMapping("/banner")
public class BannerController {
    @Autowired
    EduBannerService eduBannerService;

    @GetMapping("/getAllBanner")
    @Operation(summary = "查询轮播图列表")
    public ResultVo getList(){
        List<EduBanner> list = eduBannerService.list();
        return ResultVo.success("查询所有轮播图",list);
    }
}
